home *** CD-ROM | disk | FTP | other *** search
- // BKDlg.cpp : implementation file
- //
-
- #include "stdafx.h"
- #include "VCDemo.h"
- #include "BKDlg.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CBKDlg dialog
-
-
- CBKDlg::CBKDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CBKDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CBKDlg)
- m_style = 1;
- //}}AFX_DATA_INIT
- }
-
-
- void CBKDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CBKDlg)
- DDX_Radio(pDX, IDC_RADIO1, m_style);
- DDX_Control(pDX, IDC_SGCTRL1, m_ctrl);
- //}}AFX_DATA_MAP
- }
-
-
- BEGIN_MESSAGE_MAP(CBKDlg, CDialog)
- //{{AFX_MSG_MAP(CBKDlg)
- ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
- ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
- ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
- ON_BN_CLICKED(IDC_RADIO4, OnRadio4)
- ON_BN_CLICKED(IDC_RADIO5, OnRadio5)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CBKDlg message handlers
-
- void CBKDlg::OnRadio1()
- {
- // TODO: Add your control notification handler code here
- UpdateData();
- m_ctrl.DoSetBackGround( m_style );
- }
-
- void CBKDlg::OnRadio2()
- {
- // TODO: Add your control notification handler code here
- UpdateData();
- m_ctrl.DoSetBackGround( m_style );
- }
-
- void CBKDlg::OnRadio3()
- {
- // TODO: Add your control notification handler code here
- UpdateData();
- m_ctrl.DoSetBackGround( m_style );
- }
-
- void CBKDlg::OnRadio4()
- {
- // TODO: Add your control notification handler code here
- UpdateData();
- m_ctrl.DoSetBackGround( m_style );
- }
-
- void CBKDlg::OnRadio5()
- {
- // TODO: Add your control notification handler code here
- UpdateData();
- m_ctrl.DoSetBackGround( m_style );
- }
-
- BOOL CBKDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- // TODO: Add extra initialization here
- m_ctrl.SetPageLabelVisible( FALSE );
- COleVariant var( "VCDEMO" );
- m_ctrl.DoSetMessageTitle( var );
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
-
-